#ifndef SCENE_H
#define SCENE_H

#include <Windows.h>
#include <MMSystem.h>
#include <stdlib.h>
#include "Input.h"
#include <math.h>
#include "Slingshot.h"

class Scene
{
	public:
		void Initialise(HWND*, Input*);
		void displayFrame();
		void render(float);
		void resize(HWND*);
		void shutdown();		

	private:
		void setBuffers();
		void CalculatePhysics();
		void CollisionDetection();
		BOOL WaitFor(unsigned long);

		AnimatedSprite	structureSprite[8];	// Blocks for building structures in level and background
		Sprite			backgroundSkySprite, backgroundGroundSprite;
		Slingshot		slingshotSprite;
		AnimatedSprite  projectileSprite;
		HWND			*hwnd;		// pointer to the window
		Input			*myInput;		// pointer to the input class
		HBITMAP			theOldFrontBitMap;
		RECT			screenRect;		
		HDC				frontHDC, backHDC, transHDC, paralHDC;		// Buffers
		PhysicsObject*	PhysicsList[10];

		//for moving object
		unsigned int xpos, ypos, xpos2, ypos2, xpos3, ypos3;
		bool travelRight, travelLeft, travelDown, travelUp;
		int ticker, numPhysicsObjects;

};
#endif